import { createSlice } from '@reduxjs/toolkit';
const articleSlice = createSlice({
    name: 'article',
    initialState: {
        articleList: [],
        articleTotal: 0,
        articleDetail: {},
    },
    reducers: {
        getList (state, action) {
            state.articleList = action.payload.list;
        }
    }
});
export const { getList } = articleSlice.actions;
export default articleSlice.reducer;
